import Vue from 'vue'
import App from '@/App'
import router from '@/router'
import store from '@/store'

// 引入第三方库
import element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/styles/element-variables.scss'
Vue.use(element);

import less from 'less'
Vue.use(less)

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/en' // lang i18n

import '@/styles/index.scss' // global css

import '@/icons' // icon
import '@/router/permission' // permission control


// set ElementUI lang to EN
Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui，按如下方式声明
// Vue.use(ElementUI)

Vue.config.productionTip = false
//import "qiankun-vue2-common/style/index.scss";
//import "qiankun-vue2-common/iconfont/iconfont.css";
import { qiankunActions ,registerApps} from "./qiankun";
Vue.prototype.$actions = qiankunActions;
//registerApps();

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
